Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update client.go to allow the use of paths with the heimdall url #1126

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

PeaStew
Copy link
Contributor

@PeaStew PeaStew commented Jan 13, 2024

As reported to the polygon team 2 months ago in the Ankr polygon slack, the current code prevents the use of a path with the heimdall url, this was fixed in erigon erigontech/erigon@a3a6170 in response to my request by Mark Holt, and it seems this code was just copied from bor where it is incorrect too. This patch fixes that.

As reported to the polygon team 2 months ago in the Ankr polygon slack, the current code prevents the use of a path with the heimdall url, this was fixed in erigon erigontech/erigon@a3a6170 in response to my request by Mark Holt, and it seems this code was just copied from bor where it is incorrect too. This patch fixes that.
@marcello33 marcello33 requested a review from a team January 14, 2024 09:06
Copy link
Contributor

@marcello33 marcello33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triggered the tests and submitted to the team for review. LGTM, thanks @PeaStew

@marcello33
Copy link
Contributor

marcello33 commented Jan 14, 2024

Hey @PeaStew path is undefined. Can you please import it?
See here
Thanks

@PeaStew
Copy link
Contributor Author

PeaStew commented Jan 14, 2024

@marcello33 done, thanks :)

@PeaStew
Copy link
Contributor Author

PeaStew commented Jan 14, 2024

Your tests are setup incorrectly, in fact they seem to be set up to work around the fact that it wasn't written correctly in the first place 🤣

…g u.path to rawPath (otherwise why do we need rawPath at all) seems like there were work arounds done here in bioth the unit tests AND the makeURL but logic needs to be examined
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (70bebc9) 55.97% compared to head (7f9747a) 55.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1126      +/-   ##
==========================================
+ Coverage   55.97%   55.99%   +0.02%     
==========================================
  Files         658      658              
  Lines      114436   114436              
==========================================
+ Hits        64054    64083      +29     
+ Misses      46537    46499      -38     
- Partials     3845     3854       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcello33 marcello33 requested a review from a team January 15, 2024 08:20
@marcello33 marcello33 changed the base branch from master to develop January 15, 2024 08:31
@marcello33 marcello33 requested a review from a team January 15, 2024 08:33
@marcello33 marcello33 changed the base branch from develop to master January 15, 2024 08:39
@marcello33 marcello33 merged commit dac1a42 into maticnetwork:master Jan 15, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants